<!DESCRIPTION>A script that jumps back "home" when "h" is pressed. In other words, a script that allows you to specify a target url to go to when "h" is pressed.
<!/DESCRIPTION>
<!CATEGORY>links<!/CATEGORY>
<!SCRIPT>
<!-- START OF SCRIPT -->
<script language="JavaScript1.2">
<!--
if (document.layers)
document.captureEvents(Event.KEYPRESS)
function backhome(e){
var targeturl="http://www.javascriptkit.com"
if (document.layers||document.getElementById&&!document.all){
if (e.which==104||e.which==72)
window.location=targeturl
}
else if (document.all){
if (event.keyCode==104||event.keyCode==72)
window.location=targeturl
}
}
document.onkeypress=backhome
//-->
</script>
<!-- END OF SCRIPT -->
<!/SCRIPT>
<!PREVIEW>
<!-- START OF SCRIPT -->
<script language="JavaScript1.2">
<!--
if (document.layers)
document.captureEvents(Event.KEYPRESS)
function backhome(e){
var targeturl="http://www.javascriptkit.com"
if (document.layers||document.getElementById&&!document.all){